#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <fstream>
#include <string>

namespace boost {
namespace serialize {
    template <class Archive>
    void serialize(Archive& ar, std::string st, const unsigned int version)
    {
	ar& st;
    }
}
}

int main(int argc, char* argv[])
{
    std::string a = "123123";
    std::ofstream ofs("./textserail");
    boost::archive::text_oarchive oa(ofs);
    boost::serialize::serialize(oa,a,1);
    return 0;
}
